$(".box").css({"width":$(window).width(),"height":$(window).height()})
var topH = $(window).height()*0.1;
$(".top").css({
	"height":topH+"px",
	"line-height":topH+"px"
})

$("li").click(function(){
	$(this).css({"color": "#fff","background-color": "#2464b5"});
	$(this).siblings().css({"color": "#2464b5","background-color": "#ccc"})
})

$(".show tr:even").css({"color": "#2464b5","background-color": "#fff"})
$(".show tr:odd").css({"color": "#fff","background-color": "#2464b5"})

var ulW = $(window).width()*0.15;
var ulH = $(window).height()*0.9;
$(".bottom_left img").css({
	"height":ulH*0.1+"px",
	"margin-top":ulH*0.02+"px",
	"margin-bottom":ulH*0.02+"px",
})
$(".bottom_left ul li").css({
	"height":ulH*0.8/11+"px",
	"line-height":ulH*0.8/11+"px",
	"font-size":ulH*0.8/11*0.5+"px",
})
var showinputW = $(window).width()*0.85*0.96;
var showinputH = $(window).height()*0.18;
$(".search").find("input:first").css({
	"width":showinputW*0.3+"px",
	"height":showinputH*0.27+"px",
})
$(".search").find("input:last").css({
	"width":showinputW*0.08+"px",
	"height":showinputH*0.28+"px",
})
$(".search input").css({
	"font-size":showinputW*0.08*0.19+"px",
	"border": showinputW*0.08*0.045+"px solid  #2464b5",
	"border-radius": showinputW*0.08*0.07+"px"
})
$(".search").css({
	"bottom":showinputH*0.4+"px",
})
$(".add").css({
	"bottom":showinputH*0.08+"px",
})
$(".add input").css({
	"width":showinputW*0.08+"px",
	"height":showinputH*0.25+"px",
	"font-size":showinputW*0.08*0.19+"px",
	"border": showinputW*0.08*0.045+"px solid  #2464b5",
	"border-radius": showinputW*0.08*0.07+"px",
})

var pagingW = $(window).width()*0.85*0.96;
var pagingH = $(window).height()*0.12;
$(".paging").css({
	"padding-top":pagingH*0.3+"px",
})
$(".paging a").css({
	"width":pagingW*0.025+"px",
	"height":pagingH*0.3+"px",
	"line-height":pagingH*0.3+"px",
	"border":pagingH*0.04+"px solid  #2464b5",
	"font-size":pagingW*0.015+"px"
})
//$(".paging .ahover").css({
//	"color":"#fff",
//	"background-color":"#2464b5",
//})
$(".paging .home,.paging .last,.paging .next,.paging .end").css({
	"width":pagingW*0.06+"px",
})
var showtdW = ($(window).width()*0.85*0.96-50)/8.5;
//var showtdH = ($(window).height()*0.9*0.7-50)/10;

var showtdH = $(window).height()*0.9*0.7/11.5;



$(".team .show tr:first td").css({
	"height":showtdH*1.5+"px",
	"font-size":showtdW*0.155+"px",
})
$(".team .show tr td input[type='checkbox']").css({
	"width":showtdW*0.13+"px",
	"height":showtdW*0.13+"px"
})
$(".team .show tr:not(tr:first) td:not(td:first)").css({
//	
	"font-size":showtdW*0.14+"px",
	"width":showtdW+"px",
	"height":showtdH+"px",
	"max-width":showtdW+"px",
	
})
$(".team .show tr:first td:not(td:first)").css({
	"max-width":showtdW+"px",
})
$(".team .show tr").find("td:last").css({
	"width":showtdW*1.5+"px",
	"max-width":showtdW*1.5+"px",
	
})
$(".team .show tr td img").css({
	"width":showtdH+"px",
	"height":showtdH+"px",
	"margin":"auto",
})
$(".team .show tr").find("td:last a").css({
	"width":showtdW*0.6+"px",
	"line-height":showtdH*0.65+"px",
	"border-radius":showtdW*0.1+"px",
	"font-size":showtdW*0.13+"px",
})
$(".tmanage").click(function(){

 	$(".team").css({"display":"block"})
 	$(".bottom").children().not(".team, .bottom_left").css({"display":"none"})
})

 $(".pmanage").click(function(){
	 var showtdW = ($(window).width()*0.85*0.96-45)/17;
	 var showtdH = $(window).height()*0.9*0.7/11.5;
	 $(".player .show tr:first td").css({
		 "height":showtdH*1.5+"px",
		 "font-size":showtdW*0.26+"px",
	 })
	 $(".player .show tr td input[type='checkbox']").css({
		 "width":showtdW*0.25+"px",
		 "height":showtdW*0.25+"px"
	 })
	 $(".player .show tr:not(tr:first) td:not(td:first)").css({
//		 
		 "font-size":showtdW*0.25+"px",
		 "width":showtdW+"px",
		 "height":showtdH+"px",
		 "max-width":showtdW+"px",
	 })
	  $(".player .show tr:first td:not(td:first)").css({
		 "max-width":showtdW+"px",
	 })
	 $(".player .show tr").find("td:last").css({
		 "width":showtdW*2+"px",
		 "max-width":showtdW*2+"px",	
	 })
	 $(".player .show tr td img").css({
		 "width":showtdH+"px",
		 "height":showtdH+"px",
		 "margin":"auto",
	 })
	 $(".player .show tr").find("td:last a").css({
		"width":showtdW*0.94+"px",
		"line-height":showtdH*0.55+"px",
		"border-radius":showtdW*0.2+"px",
		"font-size":showtdW*0.25+"px",
	})
	 $(".player").css({"display":"block"})
	 $(".bottom").children().not(".player, .bottom_left").css({"display":"none"})
})

$(".gmanage").click(function(){
	 var showtdW = ($(window).width()*0.85*0.96-40)/21.5;
//	 var showtdH = ($(window).height()*0.9*0.7-40)/10;
	 var showtdH = $(window).height()*0.9*0.7/11.5;
	 $(".game .show tr:first td").css({
		 "height":showtdH*1.5+"px",
		 "font-size":showtdW*0.26+"px",
	 })
	 $(".game .show tr td input[type='checkbox']").css({
		 "width":showtdW*0.28+"px",
		 "height":showtdW*0.28+"px"
	 })
	 $(".game .show tr:not(tr:first) td:not(td:first)").css({
		 
		 "font-size":showtdW*0.25+"px",
		 "width":showtdW+"px",
		 "height":showtdH+"px",
		 "max-width":showtdW+"px",
	 })
	 $(".game .show tr:first td:not(td:first)").css({
		 "max-width":showtdW+"px",
	 })
	 $(".game .show tr").find("td:last").css({
		 "width":showtdW*2.5+"px",
		 "max-width":showtdW*2.5+"px",	
	 })
	 $(".game .show tr td img").css({
		 "width":showtdH+"px",
		 "height":showtdH+"px",
		 "margin":"auto",
	 })
	 $(".game .show tr").find("td:last a").css({
		"width":showtdW*1.2+"px",
		"line-height":showtdH*0.55+"px",
		"border-radius":showtdW*0.25+"px",
		"font-size":showtdW*0.25+"px",
	})
	 $(".game").css({"display":"block"})
	 $(".bottom").children().not(".game, .bottom_left").css({"display":"none"})
})

 $(".trecord").click(function(){
	 var showtdW = ($(window).width()*0.85*0.96-45)/20.5;
//	 var showtdH = ($(window).height()*0.9*0.7-40)/10;
	 var showtdH = $(window).height()*0.9*0.7/11.5;
	 $(".tdate .show tr:first td").css({
		 "height":showtdH*1.5+"px",
		 "font-size":showtdW*0.26+"px",
	 })
	 $(".tdate .show tr td input[type='checkbox']").css({
		 "width":showtdW*0.28+"px",
		 "height":showtdW*0.28+"px"
	 })
	 $(".tdate .show tr:not(tr:first) td:not(td:first)").css({
		 
		 "font-size":showtdW*0.25+"px",
		 "width":showtdW+"px",
		 "height":showtdH+"px",
		 "max-width":showtdW+"px",
	 })
	  $(".tdate .show tr:first td:not(td:first)").css({
		 "max-width":showtdW+"px",
	 })
	 $(".tdate .show tr").find("td:last").css({
		 "width":showtdW*2.5+"px",
		 "max-width":showtdW*2.5+"px",	
	 })
	 $(".tdate .show tr td img").css({
		 "width":showtdH+"px",
		 "height":showtdH+"px",
		 "margin":"auto",
	 })
	 $(".tdate .show tr").find("td:last a").css({
		"width":showtdW*1.2+"px",
		"line-height":showtdH*0.55+"px",
		"border-radius":showtdW*0.25+"px",
		"font-size":showtdW*0.25+"px",
	})
	 $(".tdate").css({"display":"block"})
	 $(".bottom").children().not(".tdate, .bottom_left").css({"display":"none"})
 })

 $(".precord").click(function(){
	 var showtdW = ($(window).width()*0.85*0.96-40)/23.5;
//	 var showtdH = ($(window).height()*0.9*0.7-40)/10;
	 var showtdH = $(window).height()*0.9*0.7/11.5;
	 $(".pdate .show tr:first td").css({
		 "height":showtdH*1.5+"px",
		 "font-size":showtdW*0.26+"px",
	 })
	 $(".pdate .show tr td input[type='checkbox']").css({
		 "width":showtdW*0.28+"px",
		 "height":showtdW*0.28+"px"
	 })
	 $(".pdate .show tr:not(tr:first) td:not(td:first)").css({
		 
		 "font-size":showtdW*0.25+"px",
		 "width":showtdW+"px",
		 "height":showtdH+"px",
		 "max-width":showtdW+"px",
	 })
	 $(".pdate .show tr:first td:not(td:first)").css({
		 "max-width":showtdW+"px",
	 })
	 $(".pdate .show tr").find("td:last").css({
		 "width":showtdW*2.5+"px",
		 "max-width":showtdW*2.5+"px",	
	 })
	 $(".pdate .show tr td img").css({
		 "width":showtdH+"px",
		 "height":showtdH+"px",
		 "margin":"auto",
	 })
	 $(".pdate .show tr").find("td:last a").css({
		"width":showtdW*1.2+"px",
		"line-height":showtdH*0.55+"px",
		"border-radius":showtdW*0.3+"px",
		"font-size":showtdW*0.25+"px",
	})
	 $(".pdate").css({"display":"block"})
	 $(".bottom").children().not(".pdate, .bottom_left").css({"display":"none"})
 })

 $(".lhot").click(function(){
	 var showtdW = ($(window).width()*0.85*0.96-45)/19.5;
//	 var showtdH = ($(window).height()*0.9*0.7-40)/10;
	 var showtdH = $(window).height()*0.9*0.7/11.5;
	 $(".hot .show tr:first td").css({
		 "height":showtdH*1.5+"px",
		 "font-size":showtdW*0.28+"px",
	 })
	 $(".hot .show tr td input[type='checkbox']").css({
		 "width":showtdW*0.28+"px",
		 "height":showtdW*0.28+"px"
	 })
	 $(".hot .show tr:not(tr:first) td:not(td:first)").css({
		 
		 "font-size":showtdW*0.26+"px",
		 "width":showtdW+"px",
		 "height":showtdH+"px",
		 "max-width":showtdW+"px",
	 })
	 $(".hot .show tr:first td:not(td:first)").css({
		 "max-width":showtdW+"px",
	 })
	 $(".hot .show tr").find("td:last").css({
		 "width":showtdW*2.5+"px",
		 "max-width":showtdW*2.5+"px",	
	 })
	 $(".hot .show tr td img").css({
		 "width":showtdH+"px",
		 "height":showtdH+"px",
		 "margin":"auto",
	 })
	 $(".hot .show tr").find("td:last a").css({
		"width":showtdW*1.2+"px",
		"line-height":showtdH*0.55+"px",
		"border-radius":showtdW*0.25+"px",
		"font-size":showtdW*0.25+"px",
	})
	 $(".hot").css({"display":"block"})
	 $(".bottom").children().not(".hot, .bottom_left").css({"display":"none"})
 })

 $(".lnew").click(function(){
	 var showtdW = ($(window).width()*0.85*0.96-50)/7;
//	 var showtdH = ($(window).height()*0.9*0.7-40)/10;
	 var showtdH = $(window).height()*0.9*0.7/11.5;
	 $(".new .show tr:first td").css({
		 "height":showtdH*1.5+"px",
		 "font-size":showtdW*0.15+"px",
	 })
	 $(".new .show tr td input[type='checkbox']").css({
		 "width":showtdW*0.12+"px",
		 "height":showtdW*0.12+"px"
	 })
	 $(".new .show tr:not(tr:first) td:not(td:first)").css({
		 
		 "font-size":showtdW*0.135+"px",
		 "width":showtdW+"px",
		 "height":showtdH+"px",
		 "max-width":showtdW+"px",
	 })
	 $(".new .show tr:first td:not(td:first)").css({
		 "max-width":showtdW+"px",
	 })
	 $(".new .show tr").find("td:last").css({
		 "width":showtdW*2+"px",
		 "max-width":showtdW*2+"px",	
	 })
	 $(".new .show tr td img").css({
		 "width":showtdH+"px",
		 "height":showtdH+"px",
		 "margin":"auto",
	 })
	 $(".new .show tr").find("td:last a").css({
		"width":showtdW*0.75+"px",
		"line-height":showtdH*0.75+"px",
		"border-radius":showtdW*0.2+"px",
		"font-size":showtdW*0.135+"px",
	})
	 $(".new").css({"display":"block"})
	 $(".bottom").children().not(".new, .bottom_left").css({"display":"none"})
 })

 $(".lvideo").click(function(){
	 var showtdW = ($(window).width()*0.85*0.96-50)/7;
//	 var showtdH = ($(window).height()*0.9*0.7-40)/10;
	 var showtdH = $(window).height()*0.9*0.7/11.5;
	 $(".video .show tr:first td").css({
		 "height":showtdH*1.5+"px",
		 "font-size":showtdW*0.15+"px",
	 })
	 $(".video .show tr td input[type='checkbox']").css({
		 "width":showtdW*0.12+"px",
		 "height":showtdW*0.12+"px"
	 })
	 $(".video .show tr:not(tr:first) td:not(td:first)").css({
		 
		 "font-size":showtdW*0.135+"px",
		 "width":showtdW+"px",
		 "height":showtdH+"px",
		 "max-width":showtdW+"px",
	 })
	 $(".video .show tr:first td:not(td:first)").css({
		 "max-width":showtdW+"px",
	 })
	 $(".video .show tr").find("td:last").css({
		 "width":showtdW*2+"px",
		 "max-width":showtdW*2+"px",	
	 })
	 $(".video .show tr td img").css({
		 "width":showtdH+"px",
		 "height":showtdH+"px",
		 "margin":"auto",
	 })
	 $(".video .show tr").find("td:last a").css({
		"width":showtdW*0.75+"px",
		"line-height":showtdH*0.75+"px",
		"border-radius":showtdW*0.2+"px",
		"font-size":showtdW*0.135+"px",
	})
	 $(".video").css({"display":"block"})
	 $(".bottom").children().not(".video, .bottom_left").css({"display":"none"})
 })

 $(".limg").click(function(){
	 var showtdW = ($(window).width()*0.85*0.96-50)/7;
//	 var showtdH = ($(window).height()*0.9*0.7-40)/10;
	 var showtdH = $(window).height()*0.9*0.7/11.5;
	 $(".img .show tr:first td").css({
		 "height":showtdH*1.5+"px",
		 "font-size":showtdW*0.15+"px",
	 })
	 $(".img .show tr td input[type='checkbox']").css({
		 "width":showtdW*0.12+"px",
		 "height":showtdW*0.12+"px"
	 })
	 $(".img .show tr:not(tr:first) td:not(td:first)").css({
		 
		 "font-size":showtdW*0.135+"px",
		 "width":showtdW+"px",
		 "height":showtdH+"px",
		 "max-width":showtdW+"px",
	 })
	 $(".img .show tr:first td:not(td:first)").css({
		 "max-width":showtdW+"px",
	 })
	 $(".img .show tr").find("td:last").css({
		 "width":showtdW*2+"px",
		 "max-width":showtdW*2+"px",	
	 })
	 $(".img .show tr td img").css({
		 "width":showtdH+"px",
		 "height":showtdH+"px",
		 "margin":"auto",
	 })
	 $(".img .show tr").find("td:last a").css({
		"width":showtdW*0.75+"px",
		"line-height":showtdH*0.75+"px",
		"border-radius":showtdW*0.2+"px",
		"font-size":showtdW*0.135+"px",
	})
	 $(".img").css({"display":"block"})
	 $(".bottom").children().not(".img, .bottom_left").css({"display":"none"})
 })

 $(".ladmin").click(function(){
	 var showtdW = ($(window).width()*0.85*0.96-50)/4;
//	 var showtdH = ($(window).height()*0.9*0.7-40)/10;
	 var showtdH = $(window).height()*0.9*0.7/11.5;
	 $(".admin .show tr:first td").css({
		 "height":showtdH*1.5+"px",
		 "font-size":showtdW*0.075+"px",
	 })
	 $(".admin .show tr td input[type='checkbox']").css({
		 "width":showtdW*0.07+"px",
		 "height":showtdW*0.07+"px"
	 })
	 $(".admin .show tr:not(tr:first) td:not(td:first)").css({
		 "font-size":showtdW*0.07+"px",
		 "width":showtdW+"px",
		 "height":showtdH+"px",
		 "max-width":showtdW+"px",
	 })
	 $(".admin .show tr:first td:not(td:first)").css({
		 "max-width":showtdW+"px",
	 })
	 $(".admin .show tr").find("td:last").css({
		 "width":showtdW*2+"px",
		 "max-width":showtdW*2+"px",	
	 })
	 $(".admin .show tr td img").css({
		 "width":showtdH+"px",
		 "height":showtdH+"px",
		 "margin":"auto",
	 })
	 $(".admin .show tr").find("td:last a").css({
		"width":showtdW*0.5+"px",
		"line-height":showtdH*0.75+"px",
		"border-radius":showtdW*0.2+"px",
		"font-size":showtdW*0.07+"px",
	})
	 $(".admin").css({"display":"block"})
	 $(".bottom").children().not(".admin, .bottom_left").css({"display":"none"})
 })
 
 //添加球队
var winW = $(window).width();
var winH = $(window).height();
$(".teamAdd,.teamModify").css({
	"width": winW*0.34+"px",
	"top":winH*0.22+"px",
	"left":winW*0.35+"px",
 })
 $(".teamAdd p,.teamModify p").css({
	"font-size": winW*0.017+"px",
 })
 $(".teamAdd p span,.teamModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".teamAdd table,.teamModify table").css({
	"width": winW*0.34*0.75+"px",
 })
 $(".teamAdd table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
  $(".teamModify table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
 $(".teamAdd table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
  $(".teamModify table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
 $(".teamAdd .fileTr,.teamModify .fileTr").css({
	 "line-height":winH*0.1+"px",
 })
 $(".teamAdd .fileTr td,.teamModify .fileTr td").css({
	 "line-height":0+"px",
 })
 $(".teamAdd .fileTr td img,.teamModify .fileTr td img").css({
	 "width":winH*0.1+"px",
	 "height":winH*0.1+"px",
	 "line-height":winH*0.1+"px",
 })

 $(".submitP input").css({
	 "width":winW*0.34*0.13+"px",
	 "height":winH*0.035+"px",
	 "font-size":winW*0.0115+"px",
	 "border": winW*0.002+"px solid  #2464b5",
	 "border-radius": winW*0.34*0.01+"px",
 })
 
 $(".team .add input:first").click(function(event){
	 $(".teamAdd").css({
		 "display":"block",
	 })
	  $(".teamAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".teamAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })

$(".teamAdd,.teamModify").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".teamAdd p span,.submitP input[type='button']").click( function (event){
	 $(".teamAdd").css({
		 "display":"none",
	 })
//	 $(".teamAdd #file").
	  $(".teamAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 event.stopPropagation();
 })
 
 //球员
 $(".playerAdd,.playerModify").css({
	"width": winW*0.3+"px",
	"top":winH*0.05+"px",
	"left":winW*0.35+"px",
 })
 $(".playerAdd p,.playerModify p").css({
	"font-size": winW*0.015+"px",
 })
 $(".playerAdd p span,.playerModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".playerAdd table,.playerModify table").css({
	"width": winW*0.3*0.75+"px",
 })
 $(".playerAdd table tr").find("td:first").css({
	 "width":winW*0.3*0.25+"px",
	 "line-height":winH*0.042+"px",
	 "font-size":winW*0.0125+"px",
 })
 $(".playerModify table tr").find("td:first").css({
	 "width":winW*0.3*0.25+"px",
	 "line-height":winH*0.042+"px",
	 "font-size":winW*0.0125+"px",
 })
 $(".playerAdd table tr").find("td:last").css({
	 "width":winW*0.3*0.5+"px",
	 "line-height":winH*0.042+"px",
 })
 $(".playerModify table tr").find("td:last").css({
	 "width":winW*0.3*0.5+"px",
	 "line-height":winH*0.042+"px",
 })
 $(".playerAdd .fileTr,.playerModify .fileTr").css({
	 "line-height":winH*0.08+"px",
 })
 $(".playerAdd .fileTr td,.playerModify .fileTr td").css({
	 "line-height":0+"px",
 })
 $(".playerAdd .fileTr td img,.playerModify .fileTr td img").css({
	 "width":winH*0.08+"px",
	 "height":winH*0.08+"px",
	 "line-height":winH*0.08+"px",
 })

$(".player .add input:first").click(function(event){
	 $(".playerAdd").css({
		 "display":"block",
	 })
	  $(".playerAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".playerAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })
$(".playerAdd").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".playerAdd p span,.submitP input[type='button']").click( function (event){
	 $(".playerAdd").css({
		 "display":"none",
	 })
//	 $(".playerAdd #file").
	  $(".playerAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 event.stopPropagation();
 })
 
 //赛程
 $(".gameAdd,.gameModify").css({
	"width": winW*0.3+"px",
	"top":0+"px",
	"left":winW*0.35+"px",
 })
 $(".gameAdd p,.gameModify p").css({
	"font-size": winW*0.015+"px",
 })
 $(".gameAdd p span,.gameModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".gameAdd table,.gameModify table").css({
	"width": winW*0.3*0.75+"px",
 })
 $(".gameAdd table tr").find("td:first").css({
	 "width":winW*0.3*0.25+"px",
	 "line-height":winH*0.041+"px",
	 "font-size":winW*0.012+"px",
 })
 $(".gameModify table tr").find("td:first").css({
	 "width":winW*0.3*0.25+"px",
	 "line-height":winH*0.041+"px",
	 "font-size":winW*0.012+"px",
 })
 $(".gameAdd table tr").find("td:last").css({
	 "width":winW*0.3*0.5+"px",
	 "line-height":winH*0.041+"px",
 })
$(".gameModify table tr").find("td:last").css({
	 "width":winW*0.3*0.5+"px",
	 "line-height":winH*0.041+"px",
 })

 $(".game .add input:first").click(function(event){
	 $(".gameAdd").css({
		 "display":"block",
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".gameAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })
$(".gameAdd").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".gameAdd p span,.submitP input[type='button']").click( function (event){
	 $(".gameAdd").css({
		 "display":"none",
	 })
	 event.stopPropagation();
 })
 
 //球队数据
 $(".tdateAdd,.tdateModify").css({
	"width": winW*0.3+"px",
	"top":0+"px",
	"left":winW*0.35+"px",
 })
 $(".tdateAdd p,.tdateModify p").css({
	"font-size": winW*0.015+"px",
 })
 $(".tdateAdd p span,.tdateModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".tdateAdd table,.tdateModify table").css({
	"width": winW*0.3*0.75+"px",
 })
 $(".tdateAdd table tr").find("td:first").css({
	 "width":winW*0.3*0.25+"px",
	 "line-height":winH*0.042+"px",
	 "font-size":winW*0.0125+"px",
 })
  $(".tdateModify table tr").find("td:first").css({
	 "width":winW*0.3*0.25+"px",
	 "line-height":winH*0.042+"px",
	 "font-size":winW*0.0125+"px",
 })
 $(".tdateAdd table tr").find("td:last").css({
	 "width":winW*0.3*0.5+"px",
	 "line-height":winH*0.042+"px",
 })
 $(".tdateModify table tr").find("td:last").css({
	 "width":winW*0.3*0.5+"px",
	 "line-height":winH*0.042+"px",
 })


 $(".tdate .add input:first").click(function(event){
	 $(".tdateAdd").css({
		 "display":"block",
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".tdateAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })
$(".tdateAdd").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".tdateAdd p span,.submitP input[type='button']").click( function (event){
	 $(".tdateAdd").css({
		 "display":"none",
	 })
	 event.stopPropagation();
 })
 //球员数据
 $(".pdateAdd,.pdateModify").css({
	"width": winW*0.28+"px",
	"top":winH*0.012+"px",
	"left":winW*0.35+"px",
 })
 $(".pdateAdd p,.pdateModify p").css({
	"font-size": winW*0.013+"px",
 })
 $(".pdateAdd p span,.pdateModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".pdateAdd table,.pdateModify table").css({
	"width": winW*0.3*0.75+"px",
 })
 $(".pdateAdd table tr").find("td:first").css({
	 "width":winW*0.3*0.25+"px",
	 "line-height":winH*0.035+"px",
	 "font-size":winW*0.0115+"px",
 })
 $(".pdateModify table tr").find("td:first").css({
	 "width":winW*0.3*0.25+"px",
	 "line-height":winH*0.035+"px",
	 "font-size":winW*0.0115+"px",
 })
 $(".pdateAdd table tr").find("td:last").css({
	 "width":winW*0.3*0.5+"px",
	 "line-height":winH*0.035+"px",
 })
 $(".pdateModify table tr").find("td:last").css({
	 "width":winW*0.3*0.5+"px",
	 "line-height":winH*0.035+"px",
 })


 $(".pdate .add input:first").click(function(event){
	 $(".pdateAdd").css({
		 "display":"block",
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".pdateAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })
$(".pdateAdd").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".pdateAdd p span.submitP input[type='button']").click( function (event){
	 $(".pdateAdd").css({
		 "display":"none",
	 })
	 event.stopPropagation();
 })
 
 //热区
 $(".hotAdd,.hotModify").css({
	"width": winW*0.34+"px",
	"top":0+"px",
	"left":winW*0.35+"px",
 })
 $(".hotAdd p,.hotModify p").css({
	"font-size": winW*0.015+"px",
 })
 $(".hotAdd p span,.hotModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".hotAdd table,.hotModify table").css({
	"width": winW*0.34*0.75+"px",
 })
 $(".hotAdd table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.045+"px",
	 "font-size":winW*0.012+"px",
 })
 $(".hotModify table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.045+"px",
	 "font-size":winW*0.012+"px",
 })
 $(".hotAdd table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.045+"px",
 })
 $(".hotModify table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.045+"px",
 })


 $(".hot .add input:first").click(function(event){
	 $(".hotAdd").css({
		 "display":"block",
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".hotAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })
$(".hotAdd").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".hotAdd p span,.submitP input[type='button']").click( function (event){
	 $(".hotAdd").css({
		 "display":"none",
	 })
	 event.stopPropagation();
 })
 
 //新闻
 $(".newAdd,.newModify").css({
	"width": winW*0.34+"px",
	"top":winH*0.22+"px",
	"left":winW*0.35+"px",
 })
 $(".newAdd p,.newModify p").css({
	"font-size": winW*0.017+"px",
 })
 $(".newAdd p span,.newModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".newAdd table,.newModify table").css({
	"width": winW*0.34*0.75+"px",
 })
 $(".newAdd table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
 $(".newModify table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
 $(".newAdd table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
 $(".newModify table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
 $(".newAdd textarea,.newModify textarea").css({
	 "width":winW*0.34*0.42+"px",
	 "height":winW*0.34*0.24+"px",
 })
 $(".newAdd .fileTr,.newModify .fileTr").css({
	 "line-height":winH*0.07+"px",
 })
 $(".newAdd .fileTr td,.newModify .fileTr td").css({
	 "line-height":0+"px",
 })

 $(".newAdd .fileTr td img,.newModify .fileTr td img").css({
	 "width":winH*0.07+"px",
	 "height":winH*0.07+"px",
	 "line-height":winH*0.07+"px",
 })


 $(".new .add input:first").click(function(event){
	 $(".newAdd").css({
		 "display":"block",
	 })
	  $(".newAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".newAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })
$(".newAdd").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".newAdd p span,.submitP input[type='button']").click( function (event){
	 $(".newAdd").css({
		 "display":"none",
	 })
//	 $(".teamAdd #file").
	  $(".newAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 event.stopPropagation();
 })
 
 //视频
 $(".videoAdd,.videoModify").css({
	"width": winW*0.34+"px",
	"top":winH*0.22+"px",
	"left":winW*0.35+"px",
 })
 $(".videoAdd p,.videoModify p").css({
	"font-size": winW*0.017+"px",
 })
 $(".videoAdd p span,.videoModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".videoAdd table,.videoModify table").css({
	"width": winW*0.34*0.75+"px",
 })
 $(".videoAdd table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
 $(".videoModify table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
 $(".videoAdd table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
 $(".videoModify table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
 $(".videoAdd textarea,.videoModify textarea").css({
	 "width":winW*0.34*0.42+"px",
	 "height":winW*0.34*0.24+"px",
 })
 $(".videoAdd .fileTr,.videoModify .fileTr").css({
	 "line-height":winH*0.1+"px",
 })
 $(".videoAdd .fileTr td,.videoModify .fileTr td").css({
	 "line-height":0+"px",
 })
 $(".videoAdd .fileTr td img,.videoModify .fileTr td img").css({
	 "width":winH*0.1+"px",
	 "height":winH*0.1+"px",
	 "line-height":winH*0.1+"px",
 })
 $(".video .add input:first").click(function(event){
	 $(".videoAdd").css({
		 "display":"block",
	 })
	  $(".videoAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".videoAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })
$(".videoAdd").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".videoAdd p span,.submitP input[type='button']").click( function (event){
	 $(".videoAdd").css({
		 "display":"none",
	 })
//	 $(".teamAdd #file").
	  $(".videoAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 event.stopPropagation();
 })
 //图集
 $(".imgAdd,.imgModify").css({
	"width": winW*0.34+"px",
	"top":winH*0.22+"px",
	"left":winW*0.35+"px",
 })
 $(".imgAdd p,.imgModify p").css({
	"font-size": winW*0.017+"px",
 })
 $(".imgAdd p span,.imgModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".imgAdd table,.imgModify table").css({
	"width": winW*0.34*0.75+"px",
 })
 $(".imgAdd table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
  $(".imgModify table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
 $(".imgAdd table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
  $(".imgModify table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
 $(".imgAdd textarea,.imgModify textarea").css({
	 "width":winW*0.34*0.42+"px",
	 "height":winW*0.34*0.24+"px",
 })
 $(".imgAdd .fileTr,.imgModify .fileTr").css({
	 "line-height":winH*0.07+"px",
 })
 $(".imgAdd .fileTr td,.imgModify .fileTr td").css({
	 "line-height":0+"px",
 })
 $(".imgAdd .fileTr td img,.imgModify .fileTr td img").css({
	 "width":winH*0.07+"px",
	 "height":winH*0.07+"px",
	 "line-height":winH*0.07+"px",
 })

 $(".img .add input:first").click(function(event){
	 $(".imgAdd").css({
		 "display":"block",
	 })
	  $(".imgAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".imgAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })
$(".imgAdd").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".imgAdd p span,.submitP input[type='button']").click( function (event){
	 $(".imgAdd").css({
		 "display":"none",
	 })
//	 $(".teamAdd #file").
	  $(".imgAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 event.stopPropagation();
 })
 
 //用户
  $(".adminAdd,.adminModify").css({
	"width": winW*0.34+"px",
	"top":winH*0.26+"px",
	"left":winW*0.35+"px",
 })
 $(".adminAdd p,.adminModify p").css({
	"font-size": winW*0.017+"px",
 })
 $(".adminAdd p span,.adminModify p span").css({
	"font-size": winW*0.02+"px",
 })
 $(".adminAdd table,.adminModify table").css({
	"width": winW*0.34*0.75+"px",
 })
 $(".adminAdd table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
  $(".adminModify table tr").find("td:first").css({
	 "width":winW*0.34*0.25+"px",
	 "line-height":winH*0.05+"px",
	 "font-size":winW*0.014+"px",
 })
 $(".adminAdd table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
  $(".adminModify table tr").find("td:last").css({
	 "width":winW*0.34*0.5+"px",
	 "line-height":winH*0.05+"px",
 })
 $(".imgAdd textarea,.adminModify textarea").css({
	 "width":winW*0.34*0.42+"px",
	 "height":winW*0.34*0.24+"px",
 })
 $(".adminAdd .fileTr,.adminModify .fileTr").css({
	 "line-height":winH*0.07+"px",
 })
 $(".adminAdd .fileTr td,.adminModify .fileTr td").css({
	 "line-height":0+"px",
 })
 $(".adminAdd .fileTr td img,.adminModify .fileTr td img").css({
	 "width":winH*0.12+"px",
	 "height":winH*0.12+"px",
	 "line-height":winH*0.07+"px",
 })

 $(".admin .add input:first").click(function(event){
	 $(".adminAdd").css({
		 "display":"block",
	 })
	  $(".adminAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 $(document).one("click", function () {//对document绑定一个影藏Div方法 
			$(".adminAdd").css({
				"display":"none"
			});  
	 }); 
	 event.stopPropagation();
 })
$(".adminAdd").click(function (event) { 
	event.stopPropagation();//阻止事件向上冒泡 
})
 $(".adminAdd p span,.submitP input[type='button']").click( function (event){
	 $(".adminAdd").css({
		 "display":"none",
	 })
//	 $(".teamAdd #file").
	  $(".adminAdd #addImg").attr({
		 src:"images/add.jpg"
	 })
	 event.stopPropagation();
 })
 $(".checkAll").find("td:first input").on("click",function(){
	 
//	  if($(".checkAll").nextAll().find("td:first input").is(":checked")){
//		  $(".checkAll").nextAll().find("td:first input").prop("checked","checked")
//	 }else{
//		 $(".checkAll").nextAll().find("td:first input").removeAttr("checked")
//	 }
	 if(this.checked){
		 $(".checkAll").nextAll().find("td:first input").attr("checked",true);
	 }else{
		 $(".checkAll").nextAll().find("td:first input").attr("checked",false);
		 }
   

})
 

$(".team .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".team .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"TeamServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！")
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})

$(".player .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".player .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"playerServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！");
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})
$(".game .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".game .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"gameServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！")
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})

$(".tdate .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".tdate .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"tdateServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！")
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})

$(".pdate .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".pdate .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"pdateServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！")
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})
$(".hot .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".hot .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"hotServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！")
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})
$(".new .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".new .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"newServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！")
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})

$(".video .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".video .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"videoServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！")
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})


$(".img .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".img .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"imgServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！")
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})


$(".admin .add").find("input[type='button']:last").click(function(){
	var flag = false;
	var checkAll = $(".admin .checkAll").nextAll().find("td:first input");
	var idArray = "";
	if(confirm("是否删除？")){
		for(var i = 0 ; i<checkAll.length;i++){
			if(checkAll[i].checked){
				idArray += checkAll[i].value+"_";
			}
		}
		flag = true;
	}
	if(flag){
		$.ajax({
			type:"post",
			url:"adminServlet.do?opt=2",
			data:{"ids":idArray},
			dataType: "json",
			success:function(data){
				console.log("删除成功！")
				location.href="/nba/SearchServlet.do";
			},
			error:function(){
				console.log("删除失败！")
			}
		});
	}
	
})


